<?php
class FeatureWidget extends CWidget{
    
    public $limit = 8;
    public $template = "feature";
    public function run(){
        $products = Product::buyProduct($this->limit);
        $this->render($this->template,array('products' => $products));
    }
}